package cn.yitun.chat.yitunservercommonlib.crud.yitun;

import lombok.Getter;
import lombok.Setter;

import java.util.Map;

@Getter
@Setter
public class BaseInfo<T> {
    /**
     * 状态标记（1：启用；0：禁用；2：审核；）
     */
    public static final String STATUS_ZERO = "0";
    public static final String STATUS_NORMAL = "1";
    public static final String STATUS_AUDIT = "2";
    //编号
    protected Long id;
    //创建时间,下单日期
    protected Long createTime;
    //创建者
    protected Long createBy;
    //更新时间
    protected transient Long updateTime;
    //更新者
    protected Long updateBy;

    //状态,1:正常,0禁用,(用户类:2冻结)
    protected String status;
    //开始查询
    protected transient Long begin;
    //结束查询
    protected transient Long end;

    protected String search;

    /**
     * 请求参数
     */
    private Map<String, Object> baseParams;

    public BaseInfo() {}

    public BaseInfo(Long id){
        this.id = id ;
    }
}
